package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(30)"json:"Account"`
	Password string `gorm:"type:varchar(30)"json:"Password"`
	Imag     string `gorm:"type:varchar(500)"json:"Imag"`
	Name     string `gorm:"type:varchar(50)"json:"Name"`
	Area     string `gorm:"type:varchar(50)"json:"Area"`
	SendSms  string `gorm:"type:varchar(4)"json:"SendSms"`
}

type Moments struct {
	gorm.Model
	UserId  int64  `gorm:"type:int"json:"Account"`
	Title   string `gorm:"type:varchar(30)"json:"Account"`
	Imag    string `gorm:"type:varchar(500)"json:"Imag"`
	Content string `gorm:"type:varchar(500)"json:"Content"`
	Times   string `gorm:"type:varchar(500)"json:"Times"`
}
